package com.skyhub.mapper;

import com.skyhub.common.domain.dto.HeatMap;
import com.skyhub.common.domain.dto.UploadFormDto;
import com.skyhub.common.domain.pojo.Article;
import com.skyhub.common.domain.pojo.ArticleColumn;
import com.skyhub.common.domain.pojo.ArticleSeries;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface UploadMapper {

    public List<ArticleColumn> columns();

    public List<ArticleSeries> series(UploadFormDto uploadFormDto);//渲染用户系列数据

    public void addSeries(UploadFormDto uploadFormDto);

    public void insertIntoArticles(Article article);//添加文章

    @Insert("insert into user_heatmap(user_id,count) values(#{userId},#{count})")
    public void insertIntoHeatMap(HeatMap heatMap);//往热力图添加数据
}
